package design.cp9;

import java.rmi.Naming;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.Vector;

public class TestCollection
{
	public static void main(String[] args)
	{
		TestCollection tc = new TestCollection();
		
		tc.test(new Vector<String>(), new CollectionCommand());
		
	}
	
	public void test(Collection<String> collection, Command command)
	{
		command.process(collection);
		Iterator<String> itr = collection.iterator();
		while(itr.hasNext())
		{
			System.out.println(itr.next());
		}
	}
	
	
}
